import http from "@/utils/http";
//推送测量图像数据
export function uploadMeasureImage(baseUrl, data, params) {
  return http.post(
    `${baseUrl ? baseUrl : ""}/fcs/server/uploadMeasureImage`,
    data,
    {
      params,
      headers: {
        "Content-Type": "multipart/form-data",
      },
    }
  );
}
//添加测量图像和参数
export function addMeasureImage(baseUrl, data) {
  return http.post(`${baseUrl ? baseUrl : ""}/api/addMeasureImage`, data);
}
//本地 添加测量图像和参数
export function addMeasureImageLocal(baseUrl, data) {
  return http.post(`${baseUrl ? baseUrl : ""}/api/addMeasureImage`, data, {
    headers: {
      "Content-Type": "multipart/form-data",
    },
  });
}
/************************************************************************/

//推送远程模式图像数据
export function uploadRemoteImage(baseUrl, data, params) {
  return http.post(
    `${baseUrl ? baseUrl : ""}/fcs/server/uploadRemoteImage`,
    data,
    {
      params,
      headers: {
        "Content-Type": "multipart/form-data",
      },
    }
  );
}
//添加远程图像参数
export function addRemoteScanImage(baseUrl, data) {
  return http.post(`${baseUrl ? baseUrl : ""}/api/addScanImage`, data);
}
/************************************************************************/

//推送远程模式视频数据
export function uploadRemoteVideo(baseUrl, data, params) {
  return http.post(
    `${baseUrl ? baseUrl : ""}/fcs/server/uploadRemoteVideo`,
    data,
    {
      params,
      headers: {
        "Content-Type": "multipart/form-data",
      },
    }
  );
}
//添加远程视频参数
export function addRemoteScanVideo(baseUrl, data) {
  return http.post(`${baseUrl ? baseUrl : ""}/api/addScanVideo`, data);
}

//查询可用文件服务器
export function queryServer(baseUrl, mode, sizeMB) {
  return http.post(`${baseUrl ? baseUrl : ""}/fcs/center/queryServer`, {
    mode,
    sizeMB,
  });
}
